package com.lhb.service;

import com.lhb.pojo.BaseResp;
import com.lhb.pojo.User;
import com.lhb.pojo.rep.UserReq;
import com.lhb.pojo.rep.UserRoleReq;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

/**
 * @author LiangHaiBo
 * @version 1.0
 * @date 2021.10.11 下午 19:44
 */
public interface UserService {
    BaseResp findAll(Integer page, Integer limit);

    void deleteById(Integer id);

    BaseResp login(UserReq userReq, HttpServletRequest request);

    BaseResp insertUser(UserReq userReq, HttpSession session);

    BaseResp sendMail(Object userName, HttpSession session);

    BaseResp updateRole(UserRoleReq req);

    BaseResp updateUser(User user);
}
